package org.bee.mappers;

import org.apache.ibatis.annotations.Param;
import org.bee.model.Department;
import org.bee.model.DepartmentExample;

import java.util.List;

/**
* @author 陈国松
* @date 2024-08-03 17:31:46
* @description 部门表Mapper层
* 表 department
*/
public interface DepartmentMapper {

    long countByExample(DepartmentExample example);
    
    int deleteByExample(DepartmentExample example);

    int deleteByPrimaryKey(@Param("id") String id);

    int insert(Department record);
    
    int insertSelective(Department record);
    
    List<Department> selectByExample(DepartmentExample example);

    Department selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Department record, @Param("example") DepartmentExample example);
    
    int updateByExample(@Param("record") Department record, @Param("example") DepartmentExample example);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);
}